﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Sucdri.Domain.Repository.DataMapper
{
   public static class MapperRegistry
   {
      public static IDataMapper GetMapper(string className)
      {
         //todo: for test purpose, just hard code here, will replace it with reflection and cache
         Assembly assembly = Assembly.Load("Sucdri.Domain.Repository");
         return assembly.CreateInstance("Sucdri.Domain.Repository.DataMapper.ProjectMainDataMapper") as IDataMapper;
      }
   }
}
